package com.ins1st.plus.api.system.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ins1st.plus.api.system.user.entity.SysUser;
import com.ins1st.plus.base.ServiceResult;

import java.util.List;

/**
 * @program: ins1st-plus
 * @description: 用户业务接口
 * @author: coderSun
 * @create: 2019-09-01 14:23
 **/
public interface SysUserApi extends IService<SysUser> {

    /**
     * 查询集合数据
     *
     * @param sysUser
     * @return
     */
    IPage<SysUser> page(SysUser sysUser, Page page);


    /**
     * 更新
     *
     * @param sysUser
     * @return
     */
    ServiceResult update(SysUser sysUser);


    /**
     * 查询一个用户
     *
     * @param sysUser
     * @return
     */
    SysUser getOne(SysUser sysUser);


    /**
     * 查询用户的菜单权限
     * @param userId
     * @return
     */
    public List<String> queryMenuRolesByUserId(Integer userId);
}
